import { Node } from 'cc'
export class ConfigWeapItemData {
  public key: string
  public type: number
  public sizeMap: string
  public icon: string
  public nodeScale: number
  public bagNode: Node
  public level: number
  public isWeap: boolean = false;
  public col_row: string = '';
  public weapKey: string = '';

  public loadJson(json: any) {
    this.key = json.key.toString()
    this.type = Number(json.type)
    this.sizeMap = json.sizeMap
    this.icon = json.spriteFram.toString()
    this.nodeScale = Number(json.nodeScale ? json.nodeScale : 1)
    this.level = Number(json.level)
    this.isWeap = json.isWeap
    this.col_row = json.col_row
  }
}
